import java.awt.BorderLayout;

import javax.swing.JFrame;
 
// Hauptprogramm der Demo
public class EventBusDemo extends JFrame {
    
    public EventBusDemo() {
        super("EventBus!");     
        setLayout(new BorderLayout());
        add(new SourceComponent(), BorderLayout.NORTH);
        add(new TargetComponent(), BorderLayout.CENTER);
        setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        pack();             
    }
 
    public static void main(String... args)  {
        new EventBusDemo().setVisible(true);
    }
}